package test;

import java.util.Scanner;

public class Str {
    public static void main(String[] args) {
        //键入
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str  = sc.next();
        // 遍历
        for(int i = 0 ; i< str.length() ; i++){
            char c = str.charAt(i);
            System.out.println(c );
        }


    }
}
